package com.core.family.biz.yizhao.domain.po;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * @author honglei
 * @version 1.0
 * @time: 2023-7-7 23:20:47
 * @Description PO对象 进度表
 */
@Data
@TableName(value = "yz_timeline")
public class YzTimeline implements Serializable {


        /*
        *
        */
        @TableField(value = "id")
        private Integer id;

        /*
        *  用户id
        */
        @NotNull(message = "用户id 不能为空")
        @TableField(value = "user_id")
        private Integer userId;

        /*
        *  订单表
        */
        @NotNull(message = "订单id 不能为空")
        @TableField(value = "order_id")
        private Integer orderId;

        /*
        *  汇报标题
        */
        @NotNull(message = "汇报标题 不能为空")
        @TableField(value = "title")
        private String title;

        /*
        *  汇报内容
        */
        @NotNull(message = "汇报内容 不能为空")
        @TableField(value = "content")
        private String content;

        /*
        *  汇报时间
        */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        @TableField(value = "time")
        private Date time;

        /*
        *  图片集合,分割
        */

        @TableField(value = "picture_array")
        private String pictureArray;

        /*
        *  其他
        */

        @TableField(value = "orther")
        private String orther;

        /*
        *  物流单号
        */

        @TableField(value = "exp")
        private String exp;

}
